package com.lhc.custom.bean;

import org.apache.poi.sl.usermodel.Sheet;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

@Component
public class CustomBean implements BeanNameAware {

    public void print() {
        System.out.println("test_bean");
    }

    @Override
    public void setBeanName(String s) {
        System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
        System.out.println(s);
        System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");

    }

}
